/*
 * *****************************************************************************
 *  Copyright ( c ) 2019 huibur Inc. All Rights Reserved.
 *
 *  This software is the confidential and proprietary information of Huibur Inc
 *  (*Confidential Information*). You shall not disclose such Confidential Information
 *  and shall use it only in accordance with the terms of the license agreement
 *  you entered into with Huibur or a Huibur authorized
 *  reseller (the "License Agreement*).
 *  ******************************************************************************
 */

package com.huibur.devicecheck.session;


import com.huibur.devicecheck.config.ChannelType;
import com.huibur.devicecheck.config.ClientType;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author lumos
 */
@Setter
@Getter
public class UserSubject implements Serializable {

    private static final long serialVersionUserSubjectUID = 3439155713129407371L;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 登录时间
     */
    private Long loginDateTime;

    /**
     * 用户名称
     */
    private String name;
    /**
     * 商户id
     */
    private Long merchantId;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 客户端类型
     */
    private ClientType clientType;
    /**
     * 终端类型
     */
    private ChannelType channelType;
    /**
     * 设备类型
     */
    private String deviceType;

    /**
     * 设备推送消息编码
     */
    private String deviceToken;

    /**
     * token
     */
    private String token;
}
